<%@page contentType="text/html; charset=utf-8" language="java"%>
<!DOCTYPE html>
<%@page import="java.util.*"%>
<% 
	String username = "";
	if(session.getAttribute("userID") != null){
		username = (String) session.getAttribute("userID");
	}else{
		response.sendRedirect("LoginServlet");
	}
%>
<html>
<head>
<meta charset="UTF-8">
<title>Data business Page</title>
<link type="text/css" href="<%=request.getContextPath()%>/css/datamanage/data_business_styles.css" rel="stylesheet" />
<link type="text/css" href="<%=request.getContextPath()%>/css/datamanage/manage_province_styles.css" rel="stylesheet" />
<link type="text/css" href="<%=request.getContextPath()%>/css/datamanage/upload_styles.css" rel="stylesheet" />
<link type="text/css" href="<%=request.getContextPath()%>/css/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" />
<link type="text/css" href="<%=request.getContextPath()%>/css/demos.css" rel="stylesheet" />
<link type="text/css" href="<%=request.getContextPath()%>/css/combobox.css" rel="stylesheet" />

<script src="<%=request.getContextPath()%>/js/jquery/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/jquery/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/jquery/jquery.form.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/jquery/combobox.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/main_js.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/datamanage/manage_province_main_js.js" type="text/javascript"></script>
</head>
<body>
	<img src="images/ajax-loader.gif" id="loading-img" style="display:none;" alt="Please Wait"/>
	<div id="progressbox" ><div id="progressbar"></div ><div id="statustxt">0%</div></div>
	<form id="search_frm" action="ProvinceManageServlet" method="post">
		<div class="div_search">
		
			Province Name : <input type="text" name="srh_province_name" id="srh_province_name" class="textbox_stl" maxlength="50">&nbsp;&nbsp;
			<br><br>
			<input type="button" id="btn_search" value="search" class="btn">
			<input type="button" id="btn_add" value="add" class="btn" action_goto="INSERT">
			<input type="hidden" name="action" id="action" value="SEARCH">
		</div>
	</form>
	<table class="tableData">
		<tr class="tr_th">
			<th width='15%'>Action</th>
			<th>Name TH</th>
			<th>Name EN</th>
		</tr>
		<tbody id="dataTbody">
		
		</tbody>
	</table>
	<div class="demo">
		<div id="dialog-message" title="alert message" style="display:none">
			<p id="p_freetext">
				<span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span>
				
			</p>
		</div>
		<div id="dialog-message-confirm_delete" title="alert message" style="display:none">
			<p>
				<span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span>
				Do you want to delete this record ?
			</p>
		</div>
		<div id="dialog-message-confirm_delete-img" title="alert message" style="display:none">
			<p>
				<span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span>
				Do you want to delete this picture ?
				<br>Cannot undo delete
			</p>
		</div>
		<div id="dialog-data_section" title="Update data" style="display:none">
			<%@ include file="manage_province_data.jsp"  %>
		</div>
	</div>
</body>
</html>
